package com.yym.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;

public class SocketUtil {

	public static ZWriter getWriter(Socket socket) {
		try {
			return new ZWriter(socket.getOutputStream(), true);
		} catch (IOException e) {
			e.printStackTrace();
			return null;
		} finally {
		}
	}

	public static BufferedReader getReader(Socket socket) {
		try {
			return new BufferedReader(new InputStreamReader(
					socket.getInputStream()));
		} catch (IOException e) {
			e.printStackTrace();
			return null;
		} finally {
		}
	}

}
